package com.demo.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Component
public class BComponent {
    @Resource
    private CComponent bComponent;

    @PostConstruct
    public void postConstruct(){
        System.out.println("执行了B的postConstruct");
    }
}
